package pe.com.bbva.mantenimiento.domain;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import pe.com.stefanini.core.domain.EntidadBase;

@Entity
@Table(name="TTARGPS_KIT", schema="TARGPS")
@SequenceGenerator(name = "SEQ_KIT", sequenceName = "TARGPS.SEQ_TARGPS_KIT", allocationSize = 1, initialValue = 1)
public class Kit extends EntidadBase{
	private static final long serialVersionUID = 583673344191115951L;
	private Long id;
	private Tabla tecnologia;
	private TipoTarjeta tipoTarjeta;
	private String apMasiva;
	private String codGPS;

	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="SEQ_KIT")
	@Column(name="NID_KIT")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name="NID_TECNOLOGIA")
	public Tabla getTecnologia() {
		return tecnologia;
	}
	public void setTecnologia(Tabla tecnologia) {
		this.tecnologia = tecnologia;
	}
	
	@Column(name="AP_MASIVA")
	public String getApMasiva() {
		return apMasiva;
	}
	public void setApMasiva(String apMasiva) {
		this.apMasiva = apMasiva;
	}
	
	@Column(name="COD_GPS")
	public String getCodGPS() {
		return codGPS;
	}
	public void setCodGPS(String codGPS) {
		this.codGPS = codGPS;
	}
	
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name="NID_TIPO_TARJETA")
	public TipoTarjeta getTipoTarjeta() {
		return tipoTarjeta;
	}
	public void setTipoTarjeta(TipoTarjeta tipoTarjeta) {
		this.tipoTarjeta = tipoTarjeta;
	}
}